package com.sharding.test.service;

import com.sharding.test.dto.RPage;
import com.sharding.test.dto.TsUserDto;
import com.sharding.test.entity.TsUser;

import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yangpeiyu
 * @since 2021-10-21
 */
public interface TsUserService extends IService<TsUser> {
    
	/**
	 * 根据ID查询
	 * @param id
	 * @return
	 */
	TsUser getUserById(Long id);
	
	/**
	 * 创建用户
	 * @param user
	 * @return
	 */
	boolean create(TsUser user);
	
	/**
	 * 用户分页查询
	 * @param params
	 * @return
	 */
	RPage<TsUserDto> getUserPage(Map<String, Object> params);
}
